<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="">
			
		</div>
		<script type="text/javascript">
			var oDiv = document.getElementsByTagName('div')[0];
			
			function getStyles(elem, prop){
				if (window.getComputedStyle){
					if (prop){
						return window.getComputedStyle(elem, null)[prop];
					}else{
						return window.getComputedStyle(elem, null);
					}
				}else{
					if (prop){
						return elem.currentStyle[prop];
					}else{
						return elem.currentStyle;
					}
				}
			}
		</script>
	</body>
</html>
